namespace :bilibiliranking do
  desc "bilibili ranking example history"
  task :history => :environment do
    require 'lib/tasks/vegas_video_maker.rb'
    require 'lib/tasks/bili_ranking_maker.rb'
    include VegasVideoMaker
    BRM.create({:path => "#{BILI_PRO_PATH}#{ENV['pa']}\\"}) do |vvm|
      vvm.play_bgm('1.mp3') do
        vvm.pics('weekly', [1], :length => 2).pics "history", [1], :length => 7
      end
      vvm.history
    end
  end
end